package com.simas.mobil;

import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.container.MainScreen;

import com.simas.common.CustomResources;
import com.simas.screen.XmlMBUScreen;

public class CallMBUServlet {
	CustomResources cr = new CustomResources();
	private String strMBUServlet;
	
	public CallMBUServlet() {
		
	}
	
	public void fnCallMBUServlet(MainScreen mainScreen, String strNoPlat, String strNoPolis, String strNoRangka, String strNoMesin) {
		strMBUServlet = cr.getStrMBUServlet();
		strMBUServlet = strMBUServlet + "?hidMode=1&hidNoPlat=" + strNoPlat + "&hidNoPolis=" + strNoPolis + "&hidNoRangka=" + strNoRangka + "&hidNoMesin=" + strNoMesin;
		UiApplication.getUiApplication().popScreen(mainScreen);
		XmlMBUScreen xhs = new XmlMBUScreen(strMBUServlet);
		UiApplication.getUiApplication().pushScreen(xhs);
	}
	
	public void fnCallMBUServlet(MainScreen mainScreen, String strHidNoPlat, String strHidNoPolis, String strHidNoRangka, String strHidNoMesin, String strRecNo, String strMaxNo) {
		strMBUServlet = cr.getStrMBUServlet();
		strMBUServlet = strMBUServlet + "?hidMode=1&hidNoPlat=" + strHidNoPlat + "&hidNoPolis=" + strHidNoPolis + "&hidNoRangka=" + strHidNoRangka + "&hidNoMesin=" + strHidNoMesin + "&hidRecNo=" + strRecNo + "&hidMaxNo=" + strMaxNo;
		UiApplication.getUiApplication().popScreen(mainScreen);
		XmlMBUScreen xhs = new XmlMBUScreen(strMBUServlet);
		UiApplication.getUiApplication().pushScreen(xhs);
	}
}
